//
//  LKBaseView.m
//  LKIntelligentVideoProject
//
//  Created by she1323 on 2018/9/26.
//  Copyright © 2018年 she1323. All rights reserved.
//

#import "LKBaseView.h"

@implementation LKBaseView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end



@implementation LKBaseTableview

+(instancetype)setTableviewWithFrame:(CGRect)frame style:(UITableViewStyle)style registercellClasss:(NSArray *)classnames{
    
    LKBaseTableview *tableview = [[LKBaseTableview alloc] initWithFrame:frame style:style];
    tableview.separatorStyle = UITableViewCellSeparatorStyleNone;
    tableview.showsVerticalScrollIndicator = NO;
    tableview.showsHorizontalScrollIndicator = NO;
    if (classnames != nil) {
        for (NSString *classname in classnames) {
            UINib *nib = [UINib nibWithNibName:classname bundle:nil];
            [tableview registerNib:nib forCellReuseIdentifier:classname];
        }
    }
    
    return tableview;
}

@end


@implementation LKBaseCell

-(void)awakeFromNib{
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}
@end
